import { createApp } from 'vue'
import App from './App.vue'
// 导入vue-router
import router from './router'

// i18n 中英文语言
import i18n from "@/language/index";

import 'element-plus/theme-chalk/dark/css-vars.css'
import './assets/tailwind.css'


// 引入状态管理
import { setupStore } from '@/store/index.ts'

const app = createApp(App)

app.use(router)
// 这里注册全局组件一定要写在 createApp(App) 后面且 .mount 前面


app.use(i18n)
setupStore(app)

app.mount('#app')
